<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-商品列表">
</@frame.head>

<script type="text/javascript" src="${contextPath}/resources/lib/jquery/1.9.1/jquery.js"></script>

	<div class="zp_pop">
		 
		<table>
			<tr>
				<td   style="text-align:right;"> 订单编号：	</td>
				<td> ${order.id}
					<input type="hidden" value="${order.id}" id="orderNo" name="id" > 
				</td>
			</tr>
			<tr><td   style="text-align: right; "> 收货地址：</td><td>${order.receiveInfo.provCityArea}${order.receiveInfo.recAddress}	</td></tr>
			<tr><td   style="text-align: right;"> 邮编：	</td><td>${order.receiveInfo.recPostno}  	</td></tr>
			<tr><td   style="text-align: right;"> 手机：	</td><td> ${order.receiveInfo.recMobil} 	</td></tr>
			<tr><td   style="text-align: right;"> 备注：	</td><td><textarea rows="4" cols="34"  name="remark" id="remark"></textarea>  </td></tr>
			<tr><td   style="text-align: right;">  	</td><td  style="text-align: left;">  <input class="btn btn-success radius" onclick="commitOrder(2);" value="提交并重新处理" type="button">  <input class="btn btn-success radius" onclick="commitOrder(4);" value="挂起" type="button"></td> </tr>
			 
		</table>
	</div>
<@frame.end "default">
</@frame.end>
<script>
 
function commitOrder(state){
var id=$("#orderNo").val();	
var path="${contextPath}";
 var remark=$("#remark").val();
$.ajax({
	url : path + "/tbOrder/update_order_state",
	cache : false,
	type : 'post',
	dataType : 'text',
	data : {
		"id" : id,
		"state" : state,
		"remark" : remark
	},
	success : function(msg) {
		layer.msg('操作成功!',{icon:1,time:1000},function(){

			parent.window.location.href = parent.window.location.href;
		});
	 
	},
	error : function() {
		layer.msg('操作失败!',{icon:1,time:1000},function(){
		});
		
	}
});	
}

</script>

<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/order/search_order_list.js"></script>
</html>